import React, { Component } from 'react';
import Empty from '../Home/Empty';
import WebBanner from '../Component/WebBanner';
import PriceView from './PriceView';
import tableData from './data';
import './index.less';

export default class Price extends Component {
  onChange(index) {
    // console.log(index);
  }

  render() {
    const { params: { type } } = this.props;
    const priceData = tableData[type];
    return (
      <div className='web-page price'>
        {/*顶部大图*/}
        <WebBanner className='price-banner' title="云产品定价中心" />
        <br />
        <br />
        {priceData ? <PriceView data={priceData} /> : <Empty />}
        <br />
        <br />
        <br />
      </div>
    );
  }
}